package com.ruoyi.recipe.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 菜品和类别对象 recipe_category_dish
 * 
 * @author ruoyi
 * @date 2024-12-03
 */
public class RecipeCategoryDish extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 食谱类别ID */
    private Long categoryId;

    /** 菜品ID */
    private Long dishId;

    /** 类别 */
    private String categoryName;

    /** 菜品名称 */
    private String dishName;

    private RecipeCategory category;

    private RecipeDish dish;

    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }

    public void setDishId(Long dishId) 
    {
        this.dishId = dishId;
    }

    public Long getDishId() 
    {
        return dishId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getDishName() {
        return dishName;
    }

    public void setDishName(String dishName) {
        this.dishName = dishName;
    }

    public RecipeCategory getCategory() {
        return category;
    }

    public void setCategory(RecipeCategory category) {
        this.category = category;
    }

    public RecipeDish getDish() {
        return dish;
    }

    public void setDish(RecipeDish dish) {
        this.dish = dish;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("categoryId", getCategoryId())
            .append("dishId", getDishId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("category", getCategory())
            .append("dish", getDish())
            .toString();
    }
}
